#ifndef EDITOR_GALLERY_ITEM_H
#define EDITOR_GALLERY_ITEM_H

#include <QtGui/QToolButton>

QT_BEGIN_NAMESPACE
class QMimeData;
QT_END_NAMESPACE

namespace gui
{

class EditorGalleryItem : public QToolButton
{
    Q_OBJECT

public:
    EditorGalleryItem(const QPixmap& galleryThumbnail, const QString& label,
        QAction* action, const QPixmap& dragThumbnail,
        QMimeData* dragData, QWidget* parent = 0);
    ~EditorGalleryItem();

protected:
    void mousePressEvent(QMouseEvent* event);
    void mouseMoveEvent(QMouseEvent* event);

private:
    QPoint m_dragStartPosition;
    QMimeData* m_dragData;
    QPixmap m_dragThumbnail;
};

} // namespace gui

#endif
